import { useMineContext } from '@/context/common/provider'
import { Typography, Button } from 'antd'

export default function ContextPage() {
	const { state, setState, getState } = useMineContext()
	return (
		<Typography>
			<Typography.Title level={1}>{state.title}</Typography.Title>
			<Button onClick={() => setState({ title: '新标题' })}>设置标题</Button>
			<Button onClick={() => getState()}>获取状态</Button>
		</Typography>
	)
}
